export default {
  //tel: {
  //  test: /^(\d{3,4}-)\d{7,8}|1[34578]{1}[0-9]{9}$/,
  //  message: '请输入正确的电话'
  //},
  telormobile: {
    test: /^((\d{3,4}-)?\d{7,8}|1[345789]{1}[0-9]{9})$/,
    message: '请输入正确的电话'
  },
  tel: {
    test: /^((\d{3,4}-)?\d{7,8}|1[345789]{1}[0-9]{9})$/,
    message: '请输入正确的电话'
  },
  phone: {
    test: /^1[345789]{1}[0-9]{9}$/,
    message: '请输入正确的手机号'
  },
  password: {
    test: /^[0-9a-zA-Z|!|@|#|$]{6,20}$/,
    message: '请输入有效的密码'
  },
  idCard: {
    test: /^[1-9]\d{7}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}$|^[1-9]\d{5}[1-9]\d{3}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}([0-9]|X)$/,
    message: '请输入有效的身份证号'
  }
}